/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.text.SimpleDateFormat;

/**
 * <p>Project: jse2204 - While1
 * <p>Powered by webrx On 2022-09-02 17:57:08
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class While1 {
    public static void main(String[] args) {

        int num = 926;
        int a = num % 10;
        System.out.println(a);
        int b = (num % 100 - a) / 10;
        System.out.println(b);
        int c = (num % 1000 - a - b * 10) / 100;
        System.out.println(c);

        int i = 1;
        while (true) {
            if (Math.random() > .9) break;
            System.out.println("*".repeat(i));
            i += 2;
        }
        System.out.println();
    }
}
